package com.zycfc.zsf.boot.job.enums;

import com.zycfc.zsf.boot.util.common.*;

public enum ShardingStrategy implements AbstractEnum<String>
{
    AVERAGE("AVERAGE", "\u5e73\u5747\u5206\u7247\u7b56\u7565, \u9ed8\u8ba4"), 
    RANDOM("RANDOM", "\u968f\u673a\u5206\u7247\u7b56\u7565"), 
    IP_HASH_MAX("IP_HASH_MAX", "\u6309\u7167ipHash\u6700\u5927\u503c\u5206\u7247"), 
    IP_FIXED("IP_FIXED", "\u6309\u7167\u56fa\u5b9aip\u5206\u7247");
    
    private final String value;
    private final String name;
    
    private ShardingStrategy(final String value, final String name) {
        this.value = value;
        this.name = name;
    }
    
    public String getMessage() {
        return this.name;
    }
    
    public String getValue() {
        return this.value;
    }
}
